import request from '~/utils/request'

export default{

  isCollect(courseId) {
    return request({
      url: `/api/edu/comment/auth/isCollect/${courseId}`,
      method: 'get'
    })
  },
  addComment(obj) {
    return request({
      url: `/api/edu/comment/auth/save`,
      method: 'post',
      data: obj
    })
  },
  listComment(currentPage, size, courseId) {
    return request({
      url: `/api/edu/comment/list/${currentPage}/${size}/${courseId}`,
      method: 'get'
    })
  },
  getCollectList() {
    return request({
      url: '/api/edu/comment/auth/list',
      method: 'get'
    })
  },
  removeById(courseId) {
    return request({
      url: `/api/edu/comment/auth/remove/${courseId}`,
      method: 'delete'
    })
  }

}
